<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>欢迎注册小彭租车ID</title>
<script type="text/javascript" src="<%=request.getContextPath() %>/frame/jquery-3.6.0.min.js"></script>
<link rel="stylesheet" href="<%=request.getContextPath() %>/frame/bootstrap-3.4.1-dist/css/bootstrap.css">
<script type="text/javascript" src="<%=request.getContextPath() %>/frame/bootstrap-3.4.1-dist/js/bootstrap.js"></script>
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath() %>/css/common.css">
<style type="text/css">
	body{
		background-image: url("<%=request.getContextPath() %>/images/backgroud.jpg");
		overflow: hidden;
	}
	.login-div{
		background: rgba(217, 237, 247);
		width: 400px;
		box-sizing: border-box;
		margin: 0px auto;
		padding: 20px 40px;
	}
	.login-title{
		text-align: center;
		font-size: 22px;
	}
	.form-item{
		box-sizing: border-box;
		width: 100%;
		height: 35px;
		margin-top: 15px;
		padding: 0px 5px;
	}
</style>
</head>
<body>
	<div style="height: 240px;"></div>
	<div class="login-div">
		<div class="login-title">小彭租车欢迎您！！！</div>
		<br>
		<span style="color: green"><%=request.getAttribute("successMsg") != null ? request.getAttribute("successMsg") : "" %></span>
		<span style="color: red"><%=request.getAttribute("errorMsg") != null ? request.getAttribute("errorMsg") : "" %></span>
		<form action="<%=request.getContextPath() %>/user/register" method="post">
			<input class="form-item form-control" name="username" type="text" placeholder="用户名" required="required">
			<input class="form-item form-control" name="password" type="password" placeholder="密码" required="required">
			<input class="form-item form-control" name="password2" type="password" placeholder="确认密码" required="required">
			<input class="form-item form-control" name="phone" type="text" placeholder="手机号" required="required">
			<button class="form-item btn btn-default">注册</button>
		</form>
		<br>
		<a href="<%=request.getContextPath() %>/login.jsp">注册成功 点击登录！</a>
	</div>
</body>
</html>